home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / x / animutil / xanim229.lha / xanim / xanim_fli.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-08  |  1.6 KB  |  59 lines

  1.  
  2. /*
  3.  * xanim_fli.h
  4.  *
  5.  * Copyright (C) 1990,1991,1992 by Mark Podlipec. 
  6.  * All rights reserved.
  7.  *
  8.  * This software may be freely copied, modified and redistributed
  9.  * without fee provided that this copyright notice is preserved 
  10.  * intact on all copies and modified copies.
  11.  * 
  12.  * There is no warranty or other guarantee of fitness of this software.
  13.  * It is provided solely "as is". The author(s) disclaim(s) all
  14.  * responsibility and liability with respect to this software's usage
  15.  * or its effect upon hardware or computer systems.
  16.  *
  17.  */
  18.  
  19. typedef struct
  20. {
  21.  int size;      /*  0 size 4  */
  22.  int magic;     /*  4 size 2  */
  23.  int frames;    /*  6 size 2  */
  24.  int width;     /*  8 size 2  */
  25.  int height;    /* 10 size 2  */
  26.  int flags;     /* 12 size 2  */
  27.  int res1;      /* 14 size 2  */
  28.  int speed;     /* 16 size 2  */
  29.  int next;      /* 18 size 4  */
  30.  int frit;      /* 22 size 4  */
  31.                 /* 26 size 102 future enhancement */
  32. } Fli_Header;
  33.  
  34. typedef struct
  35. {
  36.  int size;      /*  0 size 4 size of chunk */
  37.  int magic;     /*  4 size 2 */
  38.  int chunks;    /*  4 size 2 number of chunks in frame */
  39.                 /*  4 size 8 future*/
  40. } Fli_Frame_Header;
  41.  
  42. #define FLI_COLOR       11
  43. #define FLI_LC          12
  44. #define FLI_BLACK       13
  45. #define FLI_BRUN        15
  46. #define FLI_COPY        16
  47.  
  48. extern void Decode_Fli_BRUN();
  49. extern void Decode_Fli_LC();
  50. extern void Fli_Buffer_Action();
  51. extern void Read_Fli_File();
  52.  
  53. /* Words(32 bits) and HalfWords(16 bits) are stored little endian
  54.  * according to the FLI spec.
  55.  */
  56. #define GETWORD      Fli_Get_Word
  57. #define GETHALFWORD  Fli_Get_HalfWord
  58.  
  59.